﻿
--[[
   @brief    poptips desc
   @author   dragonqiu
   @version  1.0
   @date     2015-03-18
--]]

poptips_desc = {
    module_name = 'poptips',
    events = {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.tips_mgr.ON_MSGTIPS_GAME_RUNNING,
                    callback = "server_tips_control:get_game_runing_state"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_GAME_END,
                    callback = "server_tips_control:game_end_show_tips"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_PROCESS_DELETED,
                    callback = "server_tips_control:game_end_show_tips"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_GAME_END,
                    callback = "poptips_control:game_ended_show_common_tips"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_PROCESS_DELETED,
                    callback = "poptips_control:game_ended_show_common_tips"
                }
            },
            lua_event = 
            {
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_ui_mode_change',
                    callback = "poptips_control.on_ui_mode_change"
                }
            },
            reg_service = {
                {
                    -- 获取tips数据
                    -- data = {  }
                    id = 'srv_poptips_setup',
                    callback = "poptips_view:on_srv_poptips_setup"
                    --callback = "local_web_wnd.on_srv_localweb_setup"
                },
            },
            lua_file = 'poptips\\server_tips_control.lua'
        }
    }
};

desc_mgr.add(poptips_desc);
